package net.sf.calibur.transport;

import net.sf.calibur.engine.Event;

public class SessionLostEvent extends Event {
	private Session session;
	private Throwable cause;
	
	public SessionLostEvent(Session session, Throwable cause) {
		this.session = session;
		this.cause = cause;
	}
	
	public SessionLostEvent(Session session) {
		this(session, null);
	}
	
	public Session getSession() {
		return session;
	}
	
	public Throwable getCause() {
		return cause;
	}

	@Override
	public Object getId() {
		return getClass();
	}
}
